package com.tian.hello.ui.topline.base;

/**
 * Description: viewModel接口，将itemview布局类型和对于操作，进行抽离
 * Author：skyTian
 * Time:2018/2/1
 * CopyRight:com,sky
 */
public interface IViewModel<T> {

    /**
     * 默认的只有文本的布局
     */
    int MODEL_TXT = 1;
    int MODEL_IMG = 2;
    int MODEL_VEDIO = 3;
    int MODEL_FRIEND = 4;

    void onBindView(ViewHolder holder, T data);


    int getViewType();

    int getItemLayout();

}
